﻿
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="weadmin-nav">
    <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">基础设置</a>
        <a>
            <cite>权限设置</cite>
        </a>
    </span>
</div>
<table class="layui-table">
    <thead>
        <tr>
            <th>标题</th>
            <th>图标</th>
            <th>等级</th>
            <th width="40%">授权角色</th>
            <th width="60" style="text-align: center;">操作</th>
        </tr>
    </thead>
    <tbody id="tbody"></tbody>
</table>
@section scripts{
    <script id="tpl" type="text/html">
        <tr>
            <td style="padding-left:{{d.level*30}}px;">
                {{d.title}}
            </td>

            <td>
                <i class="layui-icon">{{=d.icon}}</i>
            </td>
            <td>{{d.level}}级菜单</td>
            <td>
                {{# layui.each(d.roles,function(index,item){ }}
                {{item.roleName}}
                {{# }); }}
            </td>
            <td align="center">
                {{# if(d.children.length==0){ }}
                <a title="设置权限" href="javascript:;" name="btnSet" value="{{d.id}}" pid="{{d.pId}}">
                    <i class="layui-icon font24">&#xe716;</i>
                </a>
                {{# } }}
            </td>
        </tr>
    </script>
    <script>
        layui.use(['element', 'laytpl'], function () {
            var $ = layui.$;
          
        });
    </script>
}
